package com.letoken.platform.repo.mall.req;

import com.baomidou.mybatisplus.plugins.Page;
import com.letoken.platform.pub.req.PageData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
@Data
@ApiModel(value = "商家账户详情返回信息", description = "商家账户详情返回信息")
public class MallAccoutDetailReq {

    @ApiModelProperty(name = "add", value = "收入", required = true)
    private BigDecimal add;
    @ApiModelProperty(name = "reduce", value = "支出", required = true)
    private BigDecimal reduce;
    @ApiModelProperty(name = "用户id", value = "userId", required = true)
    private Integer userId;
    @ApiModelProperty(name = "detailPage", value = "账单明细", required = true)
    private PageData<Detail> detailPage;

    @ApiModelProperty(name = "account", value = "金额", required = true)
    private BigDecimal account;

    @ApiModelProperty(name = "account", value = "金额", required = true)
    private BigDecimal accountCAP;

    @ApiModelProperty(name = "account", value = "冻结金额", required = true)
    private BigDecimal freeze;

    private BigDecimal freezeCap;

    @Data
    @ApiModel(value = "账户记录信息", description = "账户记录信息")
   public static class Detail {
        @ApiModelProperty(name = "类型", value = "13.收入 14.体现", required = true)
        private Integer type;
        @ApiModelProperty(name = "amount", value = "支出", required = true)
        private BigDecimal amount;
        @ApiModelProperty(name = "date", value = "时间", required = true)
        private LocalDateTime createTime;
        @ApiModelProperty(name = "sn", value = "对应订单号", required = true)
        private String sn;
        @ApiModelProperty(name = "status", value = "交易状态(0正在处理/1已完成/2网络确认中/3失败/4异常)", required = true)
        private Integer status;

        @ApiModelProperty(name = "inOut", value = "1=进 2=出)", required = true)
        private Integer inOut;

    }
}
